package com.david.pombar;

import org.apache.wicket.protocol.http.HttpSessionStore;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.session.ISessionStore;

/**
 * Application object for your web application. If you want to run this application without deploying, run the Start class.
 * 
 * @see wicket.myproject.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{    
    /**
     * Constructor
     */
	public WicketApplication()
	{
	}
	
	/**
	 * @see wicket.Application#getHomePage()
	 */
	public Class<HomePage> getHomePage()
	{
		return HomePage.class;
	}
	
	@Override
	public HttpSessionStore newSessionStore(){
	      return new HttpSessionStore(this);
	}
	
    protected void init() {  
	    getResourceSettings().setResourcePollFrequency(null);  
		} 
    
    protected ISessionStore othernewSessionStore() {  
    	   //return new SecondLevelCacheSessionStore(this, new DiskPageStore());  
    	   return new HttpSessionStore(this);  
    	}
}
